from impl.bing_downloader import download_image_search_result_from_bing


def download_worker_entry(category_identity: str, search_word: str, workspace_dir: str, thumbnail_only: bool,
                          db_config: dict, downloader_config: dict, header_config: dict, engine: str,
                          proxy_server_address, min_size_filter: int, verbose: bool, enable_io_perf_stat: bool,
                          shared_value):
    count = download_image_search_result_from_bing(category_identity, search_word, workspace_dir, thumbnail_only,
                                                   db_config, downloader_config, header_config, engine,
                                                   proxy_server_address,
                                                   min_size_filter, verbose, enable_io_perf_stat)
    shared_value.value = count
